home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 2.8 KB | 110 lines | [TEXT/ttxt] |
- --<<<-
- -- Filename:
- -- loadme.sx
-
- -- Other Files Required:
- -- All those specified in a fileIn.
-
- -- Purpose:
- -- Compile and execute the AutoFinder title from scripts.
-
- -- Specialized Classes:
- -- None
-
- -- Instructions to User:
- -- File this in the execute the title from scripts. Note that the menu bar will not be
- -- hidden when running from scripts, so that the menu can be accessed when debugging.
-
- -- Author:
- -- Steve Mayer
-
- fileIn theScriptDir name:"interfac.sx" --Builds the accessory interface module
-
- -- This will not open the interfac.sxl library if the above fileIn worked.
- -- I'm only using the fileIn because there is no guarantee that the interfac.sxl
- -- file will have been built by the same version of ScriptX. In a stable
- -- build environment, the above fileIn should be removed, and the code below
- -- left in place.
- if ((getModule @AccessoryInterface) = false) do
- (
- open LibraryContainer dir:(parentDir theScriptDir) \
- path:"interfac.sxl"
- )
-
- module Autofinder
- uses ScriptX
- uses AccessoryInterface
- end
-
- in module Autofinder
- global BuildOnly
- BuildOnly := true
-
- -- Load in the printing module
- if (not isdefined Printer) do (process (new loader) "loadable/printing")
- -- Should verify a printer exists!
- --enableitem thetitlecontainer.systemmenubar @print
-
- fileIn theScriptDir name:"button.sx"
- fileIn theScriptDir name:"navbutn.sx"
-
- -- For Main Menu
- fileIn theScriptDir name:"switch.sx"
- fileIn theScriptDir name:"menutogl.sx"
- fileIn theScriptDir name:"criteria.sx"
- fileIn theScriptDir name:"mainmenu.sx"
-
- -- For Graph
- filein theScriptDir name:"grapher.sx"
- filein theScriptDir name:"axis.sx"
- filein theScriptDir name:"grphclab.sx"
- filein theScriptDir name:"grphmenu.sx"
- filein theScriptDir name:"axisprop.sx"
- filein theScriptDir name:"traveler.sx"
- filein theScriptDir name:"graphble.sx"
- filein theScriptDir name:"modelcar.sx"
- filein theScriptDir name:"autogrph.sx"
-
- -- For Map
- fileIn theScriptDir name:"mapdoc.sx"
- fileIn theScriptDir name:"mapwin.sx"
- fileIn theScriptDir name:"mapper.sx"
-
- -- For Classifieds
- filein theScriptDir name:"adobject.sx"
- filein theScriptDir name:"adlayout.sx"
- filein theScriptDir name:"ads.sx"
-
- -- Autofinder main script
- fileIn theScriptDir name:"autofind.sx"
-
- (
- local titleContainerFilename:= "autofind.sxt"
- if (not BuildOnly) do
- titleContainerFilename:= "test.sxt"
- local tc := new AutoFinderTitle \
- dir:(parentDir theScriptDir) \
- name: "Autofinder" \
- path:titleContainerFilename
-
- tc.startUpAction :=
- (tc ->
- (
- -- Load in the printing module
- if (not isdefined Printer) do (process (new loader) "loadable/printing")
-
- -- Create the main window, load all of the classes and start the title.
- createStage tc
- start tc
- )
- )
- append tc (getModule @Autofinder)
- if (BuildOnly) then
- close tc
- else
- tc.startUpAction tc
- )
-
- "Compiled loadme.sx"
- -->>>
-